const Index = r => require(['../views/index'], r)
const Store = r => require(['../views/store'], r)
const Good = r => require(['../views/good'], r)
const Thai = r => require(['../views/thai'], r)
const Video = r => require(['../views/video'], r)

// 根目录
const rootPath = ''

// 页面路由
const routes = [{
  path: '',
  redirect: {
    name: 'index'
  }
}, {
  path: '/',
  component: Index,
  name: 'index'
}, {
  path: '/video',
  component: Video,
  name: 'video'
}, {
  path: '/good',
  component: Good,
  name: 'good'
}, {
  path: '/thai',
  component: Thai,
  name: 'thai'
}, {
  path: '/store',
  component: Store,
  name: 'store'
}].map(route => {
  route.path = rootPath + route.path
  return route
})

// 404 页
// routes.push({
// 	path: '*',
// 	component: NotFound,
// 	name: 'notfound'
// });

export default routes
